package kd.bos.openapi.demo.sample.custom.dto;

import kd.bos.openapi.sdk.response.result.ResultCode;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class CustomApiResult<T> {

    private boolean status = true;
    private String errorCode = "";
    private Object message;
    private T data;
    public CustomApiResult(){
    }
    public CustomApiResult(ResultCode code) {
        CustomApiResult result = new CustomApiResult();
        result.setErrorCode(code.getCode()+"");
        result.setMessage(code.getMessage());
    }
}
